package cn.iocoder.yudao.module.design.convert.reform;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.reform.vo.ReformCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.reform.vo.ReformExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.reform.vo.ReformRespVO;
import cn.iocoder.yudao.module.design.controller.admin.reform.vo.ReformUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.reform.ReformDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 项目整改单 Convert
 *
 * @author czw 
 */
@Mapper
public interface ReformConvert {

    ReformConvert INSTANCE = Mappers.getMapper(ReformConvert.class);

    ReformDO convert(ReformCreateReqVO bean);

    ReformDO convert(ReformUpdateReqVO bean);

    ReformRespVO convert(ReformDO bean);

    List<ReformRespVO> convertList(List<ReformDO> list);

    PageResult<ReformRespVO> convertPage(PageResult<ReformDO> page);

    List<ReformExcelVO> convertList02(List<ReformDO> list);

}
